package cn.itsource.ldj.org.service.impl;

import cn.itsource.ldj.base.service.impl.BaseServiceImpl;
import cn.itsource.ldj.org.domain.EmpLoyee;
import cn.itsource.ldj.org.mapper.EmpLoyeeMapper;
import cn.itsource.ldj.org.service.IEmpLoyeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class EmpLoyeeServiceImpl extends BaseServiceImpl<EmpLoyee> implements IEmpLoyeeService  {

    @Autowired
    private EmpLoyeeMapper empLoyeeMapper;

    /* 批量删除 */
    @Override
    @Transactional
    public void batchRemove(List<Long> ids) {
        // 删除外键关联的角色表
        empLoyeeMapper.removeRole(ids);

        empLoyeeMapper.batchRemove(ids);
    }

}
